<%@page contentType="text/html; charset=ISO-8859-1" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

	<style type="text/css">
		@import "http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dijit/themes/nihilo/nihilo.css";
		@import "http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dijit/themes/tundra/tundra.css";
	</style>    
	
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js"
		    djConfig="parseOnLoad:true, isDebug:true"></script>
	<script type="text/javascript">
		dojo.require("dojo.parser");
		dojo.require("dijit.layout.ContentPane");
		dojo.require("dijit.layout.TabContainer");
		dojo.require("dijit.form.Button");
	</script>
<!-- OF COURSE YOU NEED TO ADAPT NEXT LINE TO YOUR tiny_mce.js PATH -->
<script type="text/javascript" src="/javascript/tinymce/tiny_mce.js"></script>

<c:url value="/admin/site/save" var="submitUrl"/>

<form action="<c:out value="${submitUrl}" />" method="post">
	<c:if test="${!empty sebcms_object.id}">
		<input type="hidden" name="persistedObject.id" value="<c:out value="${sebcms_object.id}" />" />
	</c:if>

	<div id="mainTabContainer" dojoType="dijit.layout.TabContainer"
		style="float:right;width:624px;height:800px;padding:0;spacing:0" class="tundra">

		<div id="one" dojoType="dijit.layout.ContentPane" title="Content">
			<%-- General Info Begin... --%>
			Site Name <input type="text" name="persistedObject.name" value="<c:out value="${sebcms_object.persistedObject.name}" />" /><br/><br/>
			Brief Description <input type="text" name="persistedObject.description" value="<c:out value="${sebcms_object.description}" />" /><br/><br/>
			Contact Info<input type="text" name="persistedObject.contactInfo" value="<c:out value="${sebcms_object.contactInfo}" />" /><br/><br/>
			<%-- ...General Info End. --%>
		</div>
		
		<div id="two" dojoType="dijit.layout.ContentPane" title="eMail">
			<%-- eMail Info Begin... --%>
			Server Address <input type="text" name="persistedObject.emailServer" value="<c:out value="${sebcms_object.emailServer}" />" /><br/><br/>
			eMails From value <input type="text" name="persistedObject.emailAdminFrom" value="<c:out value="${sebcms_object.emailAdminFrom}" />" /><br/><br/>
			SMTP username <input type="text" name="persistedObject.emailSmtpUsername" value="<c:out value="${sebcms_object.emailSmtpUsername}" />" /><br/><br/>
			SMTP Password <input type="text" name="persistedObject.emailSmtpPassword" value="<c:out value="${sebcms_object.mailSmtpPassword}" />" /><br/><br/>
			Prefix for eMail Subject <input type="text" name="persistedObject.emailAdminSubjectPrefix" value="<c:out value="${sebcms_object.emailAdminSubjectPrefix}" />" /><br/><br/>
			Disclaimer Text <input type="text" name="persistedObject.emailDisclaimerContent" value="<c:out value="${sebcms_object.emailDisclaimerConten}" />" /><br/><br/>
			<%-- ...eMail Info End. --%>
		</div>
		
		<div id="three" dojoType="dijit.layout.ContentPane" title="Picasa">
			<%-- Google Picasa Begin... --%>
				Picasa Default Album Name <input type="text" name="persistedObject.picasaDefaultAlbumName" value="<c:out value="${sebcms_object.picasaDefaultAlbumName}" />" /><br/><br/>
				Service Username <input type="text" name="persistedObject.picasaServiceUsername" value="<c:out value="${sebcms_object.picasaServiceUsername}" />" /><br/><br/>
				Service Password <input type="text" name="persistedObject.picasaServicePassword" value="<c:out value="${sebcms_object.picasaServicePassword}" />" /><br/><br/>
			<%-- ...Google Picasa End. --%>
		</div>
		
		<div id="four" dojoType="dijit.layout.ContentPane" title="Calendar">
			<%-- Google Calendar Begin... --%>
			<i>Not YET implemented.</i>
			<%-- ...Google Calendar End. --%>
		</div>
		
		<div id="five" dojoType="dijit.layout.ContentPane" title="Store">
			<%-- Google Store Begin... --%>
			<i>Not YET implemented.</i>
			<%-- ...Google Store End. --%>
		 </div>
		
	</div>

	<table style="clear:both">
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" value="save" name="submit" /></td>
		</tr>
	</table>
			
</form>